package com.d2.modules.system.permission.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.d2.common.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.beetl.sql.annotation.entity.Table;

import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName("sys_resource")
@Table(name = "sys_resource")
public class Resource extends BaseEntity {

    private String title;

    //前端路由name属性
    private String name;

    private Integer type;

    private Long pid;

    private String path;

    private String component;

    @TableField(exist = false)
    private List<Resource> children;

    private String permission;

    private String icon;

    private Integer sort;
}